<template>
	<div class="wrapper"></div>
</template>

<script>
import Cookies from 'js-cookie'
import { fromPost,openHref } from '@/libs/tool'
import { systemGet } from '@/api/index.js'
export default {
	name: 'design-element',
	components: {},
	props: {},
	data() {
		return {
			cardTitleList1: [],
			download: [],
			userInfo: '', //用户信息
			accessToken: '',
		}
	},
	watch: {},
	computed: {},
	methods: {
		fromSummit: fromPost,
		init() {
			let userInfo = JSON.parse(Cookies.get('userInfo'))
			this.systemGet()
		},
		tabCardClick(item) {
			if (item.index == 0) {
				if (item.url1[0]) {
					this.fromSummit(item.url1[0].value, {
						authToken: this.accessToken,
						templateName: 'donemoreinfo',
						infoID: null,
					})
				}
			}
			if (item.index == 1) {
				if (item.url[0]) {
					this.fromSummit(item.url[0].value, {
						authToken: this.accessToken,
						templateName: 'todomoreinfo',
						infoID: null,
					})
				}
			}
		},
		moreClick(type, name, path) {
			this.setStore('moreDetailType', {
				type: type,
				name: name,
				path: path,
			})
			this.$router.push({
				path: path,
			})
		},
	},
	created() {
		this.accessToken = this.getSession('accessToken')
		this.init()
	},
	mounted() {},
}
</script>
<style lang="less" scoped>
.wrapper {
	width: 100%;
	height: 100%;
}
</style>
<style lang="less">
@import './less/home.less';
@import '../../styles/common.less';
.my-card {
	.ivu-card-body {
		padding: 10px 12px;
	}
}
.my-card1 {
	.ivu-card-body {
		padding: 0;
	}
}
</style>
<style scoped lang="less">
@import './less/page_home.less';
.demo-carousel {
	width: 100%;
	height: 100%;
}
.page_home_main {
	height: 100%;
}
.page_home_scroll {
	height: 100%;
	width: 100%;
}
</style>